<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>数据类型</title>
</head>
<body>
<h1>JavaScript的数据类型</h1>
<h2>分类</h2>
<ol>
    <li>值类型</li>
    <li>引用类型</li>
</ol>
<script>
    /*
     值类型：boolean, number(整数和浮点), string
     */
    //声明数组

    var stars = ['张学友', '刘德华', '郭富城', '黎明', '周加奇']
    let number = []
    number[0] = 0
    number[3] = 3
    console.log(number)
    console.log(stars)

    let str = new String("abc")
    console.log(str)
    console.log(typeof str) //object引用类型

    let bool = new Boolean(true)
    console.log(bool)
    console.log(typeof bool) //object引用类型

    let num = new Number(12.99)
    console.log(num)
    console.log(typeof num)  //object引用类型
</script>
</body>
</html>